﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Assignment1
{
    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
                int operand1;
                int.TryParse(Console.ReadLine(),out operand1);

                char @operator;
                char.TryParse(Console.ReadLine(), out @operator);

                int operand2;
                int.TryParse(Console.ReadLine(), out operand2);

                switch (@operator)
                {
                    case '+':
                        Console.WriteLine(operand1 + " " + @operator + " " + operand2 + " = " + (operand1 + operand2));
                        break;
                    case '-':
                        Console.WriteLine(operand1 + " " + @operator + " " + operand2 + " = " + (operand1 - operand2));
                        break;
                    case '*':

                        Console.WriteLine(operand1 + " " + @operator + " " + operand2 + " = " + (operand1 * operand2));
                        break;
                    case '/':
                        Console.WriteLine(operand1 + " " + @operator + " " + operand2 + " = " + (operand1 / operand2));
                        break;
                    default:
                        Console.WriteLine("请输入有效运算符");
                        break;
                }
            }
        }

    }
}
